﻿@model Khachhang
@{
    ViewBag.Title = "Cập Nhật Tài Khoản";
}

<h2>Cập Nhật Tài Khoản</h2>

<div class="row">
    <div class="col-md-8">

        @using (Html.BeginForm("CapNhatTaiKhoan", "TaiKhoan", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
        {
            <hr />
            @Html.ValidationSummary(true)
            <div class="form-group">
                @*@Html.LabelFor(m => m.Tendangnhap, new { @class = "col-md-2 control-label" })*@
                @Html.Label("Họ Tên ", new { @class = "col-md-5 control-label" })
                <div class="col-md-7">
                    @Html.TextBoxFor(m => m.Tenkhachhang, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.Tenkhachhang)
                </div>
            </div>
            <div class="form-group">
                @*@Html.LabelFor(m => m.Tendangnhap, new { @class = "col-md-2 control-label" })*@
                @Html.Label("Email ", new { @class = "col-md-5 control-label" })
                <div class="col-md-7">
                    @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.Email)
                </div>
            </div>
            <div class="form-group">
                @*@Html.LabelFor(m => m.Tendangnhap, new { @class = "col-md-2 control-label" })*@
                @Html.Label("Số Điện Thoại ", new { @class = "col-md-5 control-label" })
                <div class="col-md-7">
                    @Html.TextBoxFor(m => m.Sodienthoai, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.Sodienthoai)
                </div>
            </div>
            <div class="form-group">
                @*@Html.LabelFor(m => m.Tendangnhap, new { @class = "col-md-2 control-label" })*@
                @Html.Label("Địa Chỉ ", new { @class = "col-md-5 control-label" })
                <div class="col-md-7">
                    @Html.TextAreaFor(m => m.Diachi, new { @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.Diachi)
                </div>
            </div>
            @*<div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <div class="checkbox">
                            @Html.CheckBox("remember")
                            @Html.Label("Ghi nhớ mật khẩu")
                        </div>
                    </div>
                </div>*@
            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <input type="submit" value="Cập Nhật" class="btn btn-default" />
                    <input type="reset" value="Hủy" class="btn btn-default" />
                    @*<input type="button" value="Hủy" onclick="form.action='/TaiKhoan/DangKy'" class="btn btn-default" />*@
                </div>
            </div>

        }
        <p>
            <a href="/SanPham/Index">Trở về trang chủ</a>
        </p>
    </div>

</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}